package com.jk.myimkit.imkit;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.jk.myimkit.imkit.manager.AudioPlayManager;
import com.jk.myimkit.imkit.manager.AudioRecordManager;

public class RongKitReceiver extends BroadcastReceiver {
    public RongKitReceiver() {
    }

    public void onReceive(Context context, Intent intent) {
        if (intent != null && intent.getAction() != null && !intent.getAction().equals("android.intent.action.NEW_OUTGOING_CALL")) {
            AudioPlayManager.getInstance().stopPlay();
            AudioRecordManager.getInstance().destroyRecord();
        }

    }
}

